import axios from 'axios'

// 发件人地址-省
export const province = () => {
  return axios({
    url: 'http://hmajax.itheima.net/api/province'
  })
}

// 发件人地址-市
export const city = (params) => {
  return axios({
    url: 'http://hmajax.itheima.net/api/city',
    params
  })
}

// 发件人地址-区
export const area = (params) => {
  return axios({
    url: 'http://hmajax.itheima.net/api/area',
    params
  })
}
